package jse;

public class TestMatches {
	public static void main(String[] args) {
		String rex="^[a-zA-Z0-9_\\.-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,4}$";
		String email="masterkwg@163.com";
		System.out.println(email.matches(rex));
	}
	
}
